<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>登陆</title>

<!-- 引入css -->
  {include file="Common/css"}
<!-- 引入css -->

  </head>

  <body class="login">
    <div>
      <a class="hiddenanchor" id="signup"></a>
      <a class="hiddenanchor" id="signin"></a>

      <div class="login_wrapper">
        <div class="animate form login_form">
          <section class="login_content">

            <form action="{:url('login/login_form')}" method="post">

              <h1>Login Form</h1>
              
              <div>
                <input type="text" class="form-control" placeholder="Username" name="username" maxlength="12" onkeypress="return /[\w\u4e00-\u9fa5]/.test(String.fromCharCode(window.event.keyCode))" onpaste="return !/[^\w\u4e00-\u9fa5]/g.test(window.clipboardData.getData('Text'))" ondragenter="return false" autocomplete="off" onpaste="return false" oncontextmenu="return false">
              </div>

              <div>
                <input type="password" class="form-control" placeholder="Password" name="password" maxlength="12" onkeyup="value=value.replace(/[\W]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" autocomplete="off" onpaste="return false" oncontextmenu="return false">
              </div>

              <div class="yzm">
                    <input type="text" class="form-control" placeholder="验证码" name="verifyCode" required="" autocomplete="off" onkeyup="value=value.replace(/[^\a-\z\A-\Z0-9]/g,'')" maxlength="4">
                    <div>{:captcha_img()}</div>
              </div>
              <br />
              <div>
                <input type="submit" class="btn btn-default submit" value="log     in">
                <a href="{$code_url}"><img src="__STATIC__/gentelella-master/img/wb_login.png" style="width: 30px;"></a>
                <a href="{$weixin_url}"><img src="__STATIC__/gentelella-master/img/wx_login.png" style="width: 30px;"></a>
                <a href="{$qq_url}"><img src="__STATIC__/gentelella-master/img/qq_login.png" style="width: 35px;"></a>
              </div>
              
              <div class="clearfix"></div>

              <div class="separator">
                <p class="change_link">
                  <a href="{:url('login/registered')}" class="to_register"> Create Account </a>
                </p>

                <div class="clearfix"></div>
                <br />

                <div>
                  <h1><i class="fa fa-paw"></i> 管理系统!</h1>
                  <p>©2018 All Rights Reserved.</p>
                </div>

              </div>
              
            </form>
          </section>
        </div>
      </div>
    </div>
  </body>
</html>